package com.woniu.user.service;

import com.alipay.api.AlipayApiException;
import com.woniu.user.infra.model.Vip;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.user.service.dto.VipDto;

import java.io.UnsupportedEncodingException;
import java.util.List;

/**
 * <p>
 * 会员表 服务类
 * </p>
 *
 * @author Lucas
 * @since 2022-11-26
 */
public interface VipService extends IService<Vip> {
    //查看所有在售的会员卡
    public List<VipDto> vipCardInfo();
    //购买会员卡
    public String buyCard(Integer cardId,Integer userId);
    //支付
    public String payVipCard(String cardNum) throws Exception;



}
